package com.gl.blank.jsfwebapp;

import com.gl.blank.jarservices.service.UserService;

/**
 * Example of Login page controller. Trainee should create its own class. This
 * is just an example.
 */
public class LoginForm
{
    private String user;
    private String password;

    public String getUser()
    {
        return user;
    }

    public void setUser( String user )
    {
        this.user = user;
    }

    public String getPassword()
    {
        return password;
    }

    public void setPassword( String password )
    {
        this.password = password;
    }

    public void login()
    {
        WebApplication.getUserService().login( user, password );
    }
}
